package com.example.building_material_mannager.mapper;

import com.example.building_material_mannager.entity.PurchaseTable;
import com.example.building_material_mannager.entity.SelectType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PurchaseTableMapper {
    //添加
    boolean add(PurchaseTable purchaseTable);
    //删除
    boolean delete(String pordernumber);
    //修改
    boolean update(PurchaseTable purchaseTable);
    //查询该表所有信息
   List<PurchaseTable> select(PurchaseTable purchaseTable);
   //根据id查询
    PurchaseTable selectByOrder(String pordernumber);
    //应付根据id等条件查询
   PurchaseTable selectByOrderByPayment(@Param("pordernumber") String pordernumber, @Param("paymentSelectType") SelectType paymentSelectType);

}
